package com.install.services;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.install.core.service.CommonService;
import com.install.core.util.Response;
import com.install.core.util.UserUtil;

public class IndexService implements CommonService{
	public IndexService(){}
	protected Response response = new Response();
	public Response getResponse() {
		return response;
	}
	public void setResponse(Response response) {
		this.response = response;
	}
	public void getGns(JSONArray object,UserUtil userUtil) throws Exception{
		com.install.manager.IndexManager manager=new com.install.manager.IndexManager();
		JSONObject json=manager.getGns(object,userUtil);
		this.getResponse().setResponse(0, 2000, "登陆成功", json);
	}
	public String getResponseJson() throws Exception {
		// TODO Auto-generated method stub
		return this.response.getRtnJSON();
	}
}
